package com.galina.notebook.persistence;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToMany;

@Entity
public class ParkingPlace implements Serializable {

	private static final long serialVersionUID = -7310020768739247929L;
	
	@ManyToMany(cascade=CascadeType.ALL)
	private List<User> users = new ArrayList<User>();
	
	@Id
	private String number;

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public List<User> getUsers() {
		return users;
	}

	public void setUsers(List<User> users) {
		this.users = users;
	}
}
